@echo off
rem =========================
rem
rem Retail (non-debug) build script
rem
rem =========================

rem =========================
rem prebuild.sh usage:
rem     
rem     %1 = Sourceroot (where src is)
rem     %2 = title (retail debug, or both)
rem     %3 = buildnumber (title.version+p4 change)
rem     %4 = Perforce Client/CVS port spec 
rem =========================

set SourceRoot=%1
set BuildTitle=%2
set BuildNumber=%3
set SourceClient=%4

#
# This example is for a Java job, just alter to suit the job
#
set JAVA_HOME=c:\j2sdk1.4.1_02
set ANT_HOME=c:\apache-ant-1.6.1
set PATH=$JAVA_HOME\bin;$ANT_HOME\bin;%PATH%

cd %SourceRoot%

rem
rem If the build fails, return 1 so the build server knows it's failed
rem

@echo Starting Build

ant 

exit %ERRORLEVEL%
